package com.dalin.framework.vos;



/*****************************************************************************
 * @content: 表字段相关信息                                                                                                                    *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2009-06-15                                                     *
 * @modDate: 2010-05-11                                                     *
 * @version: 1.3                                                            *
 ****************************************************************************/
public class ColumnBaseInfoVo {
	private boolean isPrimaryKey; // 是否为主键
	private String columnName; // 字段名
	private String columnType; // 字段类型
	private int columnLength;  // 字段长度
	private int decimalDigits; // 小数位数
	private int nullable;    // 是否允许为ＮＵＬＬ 0不允许,1允许
	private String columnComment; // 备注
	
	
	
	
	
	
	
	public String getColumnComment() {
		return columnComment;
	}
	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}
	public boolean isPrimaryKey() {
		return isPrimaryKey;
	}
	public void setPrimaryKey(boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}
	public int getNullable() {
		return nullable;
	}
	public void setNullable(int nullable) {
		this.nullable = nullable;
	}
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	public String getColumnType() {
		return columnType;
	}
	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}
	public int getColumnLength() {
		return columnLength;
	}
	public void setColumnLength(int columnLength) {
		this.columnLength = columnLength;
	}
	public int getDecimalDigits() {
		return decimalDigits;
	}
	public void setDecimalDigits(int decimalDigits) {
		this.decimalDigits = decimalDigits;
	}
	
	
	@Override
    public int hashCode() {
        int njlrst = 17;
        njlrst = 31 * njlrst + (columnName == null ? 0 : columnName.hashCode());
        return njlrst;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ColumnBaseInfoVo)) return false;
        final ColumnBaseInfoVo other = (ColumnBaseInfoVo) o;
        if (columnName == null) {
            if (other.columnName != null) return false;
        } else if (!columnName.equalsIgnoreCase(other.columnName)) {
            return false;
        }
        return true;
    }
    
    @Override
	public String toString(){
		return super.toString();
	}
}
